//
//  LBShareHeadLabel.m
//  app
//
//  Created by 杨庆人 on 17/4/10.
//  Copyright © 2017年 NAICAI LI. All rights reserved.
//

#import "LBShareHeadLabel.h"
#import <Masonry/Masonry.h>

@interface LBShareHeadLabel ()
@property (nonatomic,strong)UILabel * label;

@end
@implementation LBShareHeadLabel

- (UILabel *)label {
    if (!_label) {
        _label = [[UILabel alloc] init];
        _label.font = [UIFont systemFontOfSize:12];
        _label.textColor = [UIColor colorWithRed:134/255.0 green:134/255.0 blue:134/255.0 alpha:1];
        _label.text = @"分享到：";
    }
    return _label;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    __weak typeof(self)weakSelf = self;
    [self.label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.bottom.right.mas_equalTo(weakSelf);
        make.left.mas_equalTo(weakSelf).offset(15);
    }];
}

- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        
        [self addSubview:self.label];
    }
    return self;
}

@end
